package com.ruoyi.project.in.stockindetail.controller;


import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.project.in.stockindetail.domain.StockinDetail;
import com.ruoyi.project.in.stockindetail.service.IStockinDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 入库单子管理 信息操作处理
 * 
 * @author sys
 * @date 2021-10-28
 */
@Controller
@RequestMapping("/in/stockindetail")
public class StockinDetailController extends BaseController
{
    private String prefix = "in/stockin";
	
	@Autowired
	private IStockinDetailService stockinDetailService;

	/**
	 * 查询入库单子管理列表
	 */
	@RequestMapping("/list")
	@ResponseBody
	public TableDataInfo list(StockinDetail stockinDetail)
	{
//		startPage();
		List<StockinDetail> list = stockinDetailService.selectStockinDetailList(stockinDetail);
		return getDataTable(list);
	}

}
